/* 基础样式和变量 */
:root {
  --primary-color: #FB7299;
  --secondary-color: #00a1d6;
  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --text-color: #333333;
  --border-radius: 8px;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
}

.container {
  width: 360px;
  padding: 15px;
}

/* 卡片样式 */
.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 15px;
}

/* 头部样式 */
header {
  margin-bottom: 15px;
}

header h1 {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

/* 视频信息样式 */
.video-details {
  display: flex;
  gap: 10px;
}

.video-cover {
  width: 120px;
  height: 75px;
  overflow: hidden;
  border-radius: 4px;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-title h2 {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: bold;
}

.video-title p {
  font-size: 12px;
  color: #666;
}

/* 表单元素样式 */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}

/* 按钮样式 */
.main-btn, .secondary-btn, .icon-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s, transform 0.1s;
}

.main-btn {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
}

.main-btn:hover {
  background-color: #e03f7a;
  transform: translateY(-1px);
}

.secondary-btn {
  background-color: #f0f0f0;
  color: #666;
}

.secondary-btn:hover {
  background-color: #e4e4e4;
}

.icon-btn {
  background: none;
  font-size: 16px;
  padding: 6px;
}

/* 下载路径样式 */
.download-path {
  background-color: #f0f0f0;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
  color: #666;
}

/* 进度条样式 */
.progress-container {
  margin-bottom: 12px;
}

.progress-bar {
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress {
  height: 100%;
  background-color: var(--secondary-color);
  width: 0%;
  transition: width 0.5s ease;
}

.progress-info, .time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

/* 下载列表样式 */
#downloadList {
  list-style-type: none;
}

#downloadList li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#downloadList li:last-child {
  border-bottom: none;
}

.download-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* 底部样式 */
footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 0;
}

/* 占位符样式 */
.placeholder {
  text-align: center;
  padding: 20px 10px;
  color: #999;
} 